package com.nami.gate.api.service;

import com.nami.gate.api.request.login.BindingRequest;
import com.nami.gate.api.request.login.LogoutRequest;
import com.nami.gate.api.request.login.TempChannelCloseRequest;
import com.nami.gate.api.request.pong.PongRequest;

/**
 * 描述：
 *
 * @Author: lbc
 * @Date: 2023-07-21 9:14
 * @email: 594599620@qq.com
 * @Description: keep coding
 */
public interface RemoteLoginService {



    /**
     * 客户端登录指令，server send msg to client
     * 客户端登录请求响应
     *
     * @param request
     */
    void loginSuccess(BindingRequest request);

    /**
     * 客户端注销指令，system to client 注销响应
     *
     * @param outDTO
     */
    void loginout(LogoutRequest outDTO);

    /**
     * 关闭 channel
     *
     * @param identityNo
     */
    void closeChannel(String identityNo);

    /**
     * 关闭临时channel
     *
     * @param dto
     */
    void tempChannelClose(TempChannelCloseRequest dto);

    /**
     * pong
     *
     * @param dto
     */
    void pong(PongRequest dto);

}
